<!DOCTYPE html>

<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <title>管理员信息管理</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.5 -->
    <link rel="stylesheet" th:href="@{/webjars/bootstrap/3.4.1/css/bootstrap.css}">
    <script th:src="@{/webjars/jquery/3.5.1/dist/jquery.js}"></script>
    <script th:src="@{/webjars/bootstrap/3.4.1/js/bootstrap.js}"></script>
    <!-- Font Awesome -->
    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
    <!-- Ionicons -->
    <link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet">
    <!-- Theme style -->
    <link href="/static/css/AdminLTE.min.css" rel="stylesheet">

    <link href="/static/css/skins/skin-blue.min.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<!-- todo：用户部分可以修改密码 -->
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <!-- Main Header -->
    <header class="main-header">

        <!-- Logo -->
        <a class="logo" href="#">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><b>C</b>C</span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>Child</b>Care</span>
        </a>

        <!-- Header Navbar -->
        <nav class="navbar navbar-static-top" role="navigation">
            <!-- Sidebar toggle button-->
            <a class="sidebar-toggle" data-toggle="offcanvas" href="#" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <!-- Navbar Right Menu -->
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!-- User Account Menu -->
                    <li class="dropdown user user-menu">
                        <!-- Menu Toggle Button -->
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <!-- The user image in the navbar-->
                            <img alt="User Image" class="user-image" src="/static/img/user2-160x160.jpg">
                            <!-- hidden-xs hides the username on small devices so only the image appears. -->
                            <span class="hidden-xs" th:text="${session.admin_user}"></span>

                        </a>
                        <ul class="dropdown-menu">
                            <!-- The user image in the menu -->
                            <li class="user-header">
                                <img alt="User Image" class="img-circle" src="/static/img/user2-160x160.jpg">
                                <p>
                                    admin
                                    <small>管理员就是你爹，想想清楚再和你爹说话</small>
                                </p>
                            </li>
                            <!-- Menu Body -->
                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a class="btn btn-default btn-flat" href="#">资料</a>
                                </div>
                                <div class="pull-right">
                                    <a class="btn btn-default btn-flat" href="/login/adminLogout">登出</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">

            <!-- Sidebar user panel (optional) -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img alt="User Image" class="img-circle" src="/static/img/user2-160x160.jpg">
                </div>
                <div class="pull-left info">
                    <!-- Status -->
                    <p th:text="${session.admin_user}"></p>
                    <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                </div>
            </div>
            <!-- Sidebar Menu -->
            <ul class="sidebar-menu">
                <li class="header">菜单</li>
                <!-- Optionally, you can add icons to the links -->
                <li><a href="/admin/backToAdmin"><i class="fa fa-home"></i> <span>首页</span></a></li>
                <li><a href="/admin/getSensorInfo"><i class="fa fa-heartbeat"></i> <span>用户传感器信息管理</span></a></li>
                <li><a href="/admin/listUserInfo"><i class="fa fa-user"></i> <span>用户信息管理</span></a></li>
                <li class="active"><a href="#"><i class="fa fa-user-plus"></i> <span>管理员信息管理</span></a></li>
                <li><a href="/admin/listSysInfo"><i class="fa fa-file-word-o"></i> <span>使用前必读版本控制</span></a></li>
            </ul>
            <!-- /.sidebar-menu -->
        </section>
        <!-- /.sidebar -->

    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                管理员信息管理
                <small>Admin Info Management</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
                <li class="active">管理员信息管理</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-sm-12">
                    <div class="row"></div>
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">管理员信息列表</h3>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body">
                            <div class="dataTables_wrapper form-inline dt-bootstrap" id="example2_wrapper">
                                <div class="row">
                                    <div class="col-sm-6"></div>
                                    <div class="col-sm-6"></div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-12">
                                        <table aria-describedby="example2_info"
                                               class="table table-bordered table-hover dataTable"
                                               id="example2" role="grid">
                                            <thead>
                                            <tr role="row">
                                                <th>管理员名称</th>
                                                <th>管理员账户</th>
                                                <th>管理员密码</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <tr role="row" th:each="admin:${admins}">
                                                <td class="sorting_1" th:text="${admin.getAdministrationName()}"></td>
                                                <td th:text="${admin.getAdministrationPassword()}"></td>
                                                <td th:text="${admin.getAdministrationAccount()}"></td>
                                            </tr>
                                            </tbody>
                                            <tfoot>
                                            <tr>
                                                <th>管理员名称</th>
                                                <th>管理员账户</th>
                                                <th>管理员密码</th>
                                            </tr>
                                            </tfoot>
                                        </table>
                                    </div>
                                    <!-- /.box-body -->
                                </div>
                                <!-- /.box -->
                            </div>
                            <!-- /.col -->
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <!-- Main Footer -->
    <footer class="main-footer">
        <!-- To the right -->
        <div class="pull-right hidden-xs">
            老师分给高点，我给你磕头了，砰砰砰！
        </div>
        <!-- Default to the left -->
        <strong>Copyright &copy; 2020 <a href="#">能力有限公司</a>.</strong> 版权所有.
    </footer>
    <!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->
<!-- AdminLTE App -->
<script src="/static/js/app.js"></script>
</body>
</html>
